#include <stdio.h>

#define NOT_BLANK  '0'
#define IN_BLANK  '1'

/**
 * 用于复制字母
 * @return
 */
int copyLetter() {
	printf("exercise for 1-9 in page 13.\n");
	int c;
	char flag;

	// flag的值 打印第一个空格时设置为 1， 打印其他字符时设置为0
	flag = NOT_BLANK;
	while ((c = getchar()) != EOF) {
		if(c != ' '){
			flag = NOT_BLANK;
			putchar(c);
		}else{
			if(flag == NOT_BLANK){
				putchar(c);
				flag = IN_BLANK;
			}
		}
	}

}
